<?php
include_once('./config/config.php');
$admin = AuthCheck();
$action = $_GET['action'] ?? '';
// 退出账号
if ($action === 'logout') {
    setcookie('auth', '', time() - 1);
    notice('退出成功', 'login.php');
}
?>

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>admin</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- 公共样式 -->
    <?php include_once('./common/meta.php'); ?>

    <!-- jquery -->
    <script src="./assets/lib/jquery-1.7.2.min.js" type="text/javascript"></script>
</head>

<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->

<body>
    <!--<![endif]-->

    <!-- 公共头部 -->
    <?php include_once('./common/header.php') ?>

    <!-- 公共侧边菜单栏 -->
    <?php include_once('./common/menu.php') ?>

    <div class="content">
        <div class="header">
            <h1 class="page-title">后台首页</h1>
        </div>
        <ul class="breadcrumb">
            <li><a href="index.php">Home</a> <span class="divider">/</span></li>
            <li class="active">Index</li>
        </ul>

        <div class="container-fluid">
            <div class="row-fluid">
                <!-- 公共底部 -->
                <?php include_once('./common/footer.php') ?>
            </div>
        </div>
    </div>
</body>

</html>

<!-- 公共js -->
<?php include_once('./common/script.php') ?>